<!DOCTYPE html>
<html lang="en">
#parse('base/head.html')


<style>
.profile-info-name {
	text-align: right;
	padding: 6px 10px 6px 4px;
	font-weight: 400;
	color: #667E99;
	background-color: transparent;
	width: 20%;
	vertical-align: middle
}

.profile-info-value {
	width: 25%;
	padding: 6px 4px 6px 6px
}


.profile-info-name2 {
	text-align: right;
	padding: 6px 10px 6px 4px;
	font-weight: 400;
	color: #667E99;
	background-color: #EDF3F4;
	width: 100px;
	vertical-align: middle
}

.search-media {
	border: 1px solid #ddd;
	margin-top: -1px;
	padding: 12px 12px 12px 12px;
	-webkit-transition: border .1s ease-in-out 0s;
	-o-transition: border .1s ease-in-out 0s;
	transition: border .1s ease-in-out 0s;
	position: relative
}
</style>

<body class="no-skin">

<div class="main-container ace-save-state" id="main-container">

    <div class="main-content">
        <div class="main-content-inner">
            <div class="page-content">
                <!-- 
				<div class="page-header">
					
				</div>--><!-- /.page-header -->
				

				
				
				<div class="row">
					<div class="col-sm-12">
					
								<div class="widget-box">
									<div class="widget-header widget-header-blue widget-header-flat">
										<h4 class="widget-title lighter">
											#if("${action}"=="add")
												新增项目基本信息 
											#end
											#if("${action}"=="update")
												编辑项目基本信息 
											#end
										</h4>

										
									</div>

									<div class="widget-body">
										<div class="widget-main">
											<div id="fuelux-wizard-container">
												<div>
													<ul class="steps">
														<li data-step="1" id="steps-li-1" class="active">
															<span class="step">1</span>
															<span class="title">基本信息</span>
														</li>

														<li data-step="2" id="steps-li-2">
															<span class="step">2</span>
															<span class="title">关联贫困家庭</span>
														</li>

														<li data-step="3" id="steps-li-3">
															<span class="step">3</span>
															<span class="title">完成</span>
														</li>
													</ul>
												</div>

												<hr />

												<div class="step-content pos-rel">
													<div class="step-pane active" id="step-project-info" data-step="1">
														

														<div class="row">
															<div class="col-sm-12">						
																<form type="post" action="" id="detailForm">
																
																<div class="hidden" >
																	<input class="col-xs-12 col-sm-10" type="text" id="form-field-projectId" name="projectId" value="$!{aidProjectPO.projectId}" />
																	<input class="col-xs-12 col-sm-10" type="text"  id="actionId" name="action" value="$!{action}" />
																	<input class="col-xs-12 col-sm-10" type="text" id="editRowId" name="editRowId" value="$!{editRowId}" />
																
																</div>
																
																<div class="col-xs-12">
																	<div class="profile-user-info profile-user-info-striped" style="width: calc(100% );" id="project_info_div" >
																		<div class="profile-info-row">
																			
																			<div class="profile-info-name"> 项目编号 </div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-projectCode" name="projectCode" value="$!{aidProjectPO.projectCode}" required placeholder="项目编号" class="col-xs-12 col-sm-12" data-required />
																			</div>
																			
																			<div class="profile-info-name"> 项目名称</div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-projectName" name="projectName" value="$!{aidProjectPO.projectName}" required placeholder="项目名称" class="col-xs-12 col-sm-12" />
																			</div>
																			
																			
																		</div>
																		<div class="profile-info-row">
																			<div class="profile-info-name"> 项目分类 </div>
																			<div class="profile-info-value">
																				<select class="chosen-select form-control" id="form-field-projectType" name="projectType" data-placeholder="项目分类">
																					#foreach($dataDictPO in $projectTypeList)
																					<option value="$!{dataDictPO.dataKey}"  #if("${aidProjectPO.projectType}"=="${dataDictPO.dataKey}") selected = "selected" #end  >$!{dataDictPO.dataName}</option>
																					#end
																				</select>
																			</div>
																			
																			<div class="profile-info-name"> 项目子分类 </div>
																			<div class="profile-info-value">
																				<select class="chosen-select form-control" id="form-field-projectSubType" name="projectSubType" data-placeholder="项目子分类">
																					#foreach($dataDictPO in $projectSubTypeList)
																					<option value="$!{dataDictPO.dataKey}"  #if("${aidProjectPO.projectSubType}"=="${dataDictPO.dataKey}") selected = "selected" #end  >$!{dataDictPO.dataName}</option>
																					#end
																				</select>
																			</div>
																			
																			
																			
																		</div>	
																		<div class="profile-info-row">	
																			
																			<div class="profile-info-name"> 开始时间 </div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-beginDate" name="beginDate" value="$!dateTool.format('yyyy-MM-dd',$!aidProjectPO.beginDate)" required placeholder="开始时间" class="col-xs-12 col-sm-12 date-picker"  data-date-format="yyyy-mm-dd" />
																			</div>
																			
																			<div class="profile-info-name"> 结束时间 </div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-endDate" name="endDate" value="$!dateTool.format('yyyy-MM-dd',$!aidProjectPO.endDate)" required placeholder="结束时间" class="col-xs-12 col-sm-12 date-picker"  data-date-format="yyyy-mm-dd" />
																			</div>
																			
																			
																		</div>
																		<div class="profile-info-row">
																			<div class="profile-info-name"> 总投资 </div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-totalInvest" name="totalInvest" value="$!{aidProjectPO.totalInvest}" required placeholder="总投资" class="col-xs-12 col-sm-12" />
																			</div>
																			
																			<div class="profile-info-name"> 计划投资</div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-planInvest" name="planInvest" value="$!{aidProjectPO.planInvest}" required placeholder="计划投资" class="col-xs-12 col-sm-12" />
																			</div>
																		
																		</div>
																		<div class="profile-info-row">
																			<div class="profile-info-name"> 部门领导 </div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-cityLeader" name="cityLeader" value="$!{aidProjectPO.cityLeader}" required placeholder="部门领导" class="col-xs-12 col-sm-12" />
																			</div>
																			
																			<div class="profile-info-name"> 责任部门</div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-respDepartment" name="department" value="$!{aidProjectPO.respDepartment}" required placeholder="责任部门" class="col-xs-12 col-sm-12" />
																			</div>
																		
																		</div>
																		<div class="profile-info-row">
																			<div class="profile-info-name"> 项目责任人 </div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-respStaff" name="respStaff" value="$!{aidProjectPO.respStaff}" required placeholder="项目责任人" class="col-xs-12 col-sm-12" />
																			</div>
																			
																			<div class="profile-info-name"> 扶贫办责任人</div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-povertyLeader" name="povertyLeader" value="$!{aidProjectPO.povertyStaff}" required placeholder="扶贫办责任人" class="col-xs-12 col-sm-12" />
																			</div>
																		
																		</div>
																		<div class="profile-info-row">
																			<div class="profile-info-name"> 计划年月 </div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-planDate" name="planDate" value="$!dateTool.format('yyyy-MM-dd',$!aidProjectPO.planDate)" required placeholder="计划年月" class="col-xs-12 col-sm-12 date-picker"  data-date-format="yyyy-mm-dd" />
																			</div>
																			
																			<div class="profile-info-name"> 项目状态</div>
																			<div class="profile-info-value">
																				<select class="chosen-select form-control" id="form-field-state" name="state" data-placeholder="项目状态">
																					#foreach($dataDictPO in $projectStateList)
																					<option value="$!{dataDictPO.dataKey}"  #if("${aidProjectPO.state}"=="${dataDictPO.dataKey}") selected = "selected" #end  >$!{dataDictPO.dataName}</option>
																					#end
																				</select>
																			</div>
																		
																		</div>
																		<div class="profile-info-row">
																			<div class="profile-info-name"> 项目归属 </div>
																			<div class="profile-info-value">
																				<select class="chosen-select form-control" name="projectBelong" id="form-field-projectBelong" data-placeholder="项目归属">
																					<option value="">苏尼特右旗</option>
																					#foreach($townInfoPO in $townInfoPOList)
																					<option value="$!{townInfoPO.townId}" #if("${aidProjectPO.projectBelong}"=="${townInfoPO.townId}") selected = "selected" #end >$!{townInfoPO.townName}</option>
																					#end
																				</select>
																			</div>
																			
																			<div class="profile-info-name"> 预计收益</div>
																			<div class="profile-info-value">
																				<input type="text" id="form-field-estimatedIncome" name="estimatedIncome" value="$!{aidProjectPO.estimatedIncome}" required placeholder="预计收益" class="col-xs-12 col-sm-12" />
																			</div>
																		</div>
																	</div>
																	
																</div>
																<div class="col-sm-12">
																	<div class="profile-info-row">
																		<div class="profile-info-name"> 项目说明 </div>
																		<span class="col-sm-12">
																			<textarea rows="3" cols="80" name="projectDesc" id="form-field-projectDesc" >$!{aidProjectPO.projectDesc}</textarea>
																		</span>
																	</div>
																
																</div>
																</form>
																
															</div>
														</div>
														
														<div class="row">
															<div class="col-sm-12">
																<div class="profile-activity clearfix" id="pkh_detail_title_id">
																	<div class="center col-md-12">
																		<button id="submitFormBtn" class="btn btn-info" type="button">
																			<i class="ace-icon fa fa-check bigger-110"></i>
																			确定
																		</button>
																		<button id="backBtn" class="btn" >
																			<i class="ace-icon fa fa-undo bigger-110"></i>
																			返回
																		</button>
																		

																		<button id="nextBtn" class="btn btn-success #if("${action}"=="add") hidden #end" >
																			<i class="ace-icon fa fa-arrow-right bigger-110"></i>
																			下一步
																		</button>
																		
																	</div>
																</div>
															</div>
														</div>
														
														
														

														
													</div>

													<div class="step-pane" id="step-project-family" data-step="2">
														
														<div class="row">
															<div class="col-sm-12">
																
																<h4 class="widget-title">
																	<i class=""></i>
																	已选贫困户列表
																</h4>
																<div class="col-xs-4">
																	<label class="lineH-34 col-sm-4 control-label no-padding-right" for="checkedform-field-2"> 镇(乡) </label>
																	<div class="col-sm-8">
																		<select class="chosen-select form-control" name="townId" id="checkedform-field-2" data-placeholder="镇(乡)">
																			<option value="">全部</option>
																			#foreach($townInfoPO in $townInfoPOList)
																			<option value="$!{townInfoPO.townId}">$!{townInfoPO.townName}</option>
																			#end
																		</select>
																	</div>
																</div>
																<div class="col-xs-4 col-sm-4">
																	<label class="lineH-34 col-sm-4 control-label no-padding-right" for="checkedform-field-1"> 贫困户名 </label>
																	<div class="col-sm-8">
																		<input type="text" id="checkedform-field-1" name="personName" placeholder="请输入户主名称" class="col-xs-10 col-sm-12" />
																	</div>
																</div>
																<div class="col-xs-4 col-sm-4">
																	<span class="input-group-btn" style="text-align: center;">
																		<button type="button" class="btn btn-sm btn-primary" id="checked-pkh-list-btn">
																			<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
																			查询
																		</button>
																	</span>
																	<span class="input-group-btn" style="text-align: left;">
																		<button type="button" class="btn btn-sm btn-primary" id="checked-bound-btn">
																			<span class="ace-icon fa fa-square-o icon-on-right bigger-110"></span>
																			解绑贫困家庭
																		</button>
																	</span>
																	<span class="input-group-btn" style="text-align: left;">
																		<button type="button" class="btn btn-sm btn-primary" id="do-releated-btn">
																			<span class="ace-icon fa fa-check-square-o icon-on-right bigger-110"></span>
																			绑定贫困家庭
																		</button>
																	</span>
																</div>
															</div>
														</div>
														<div class="row">
															<div class="col-sm-12">
																
																<div class="col-sm-12" >
																	<table id="checked-pkh-list"></table>
																	<div id="checked-pkh-list-pager"></div>
																</div>
															</div>
														</div>
														
														<div class="row">
															<div class="col-sm-12">
																<div class="profile-activity clearfix">
																	<div class="center col-md-12">
																		
																		<button id="relatedBackBtn" class="btn" >
																			<i class="ace-icon fa fa-undo bigger-110"></i>
																			返回
																		</button>
																		

																		<button id="relatedNextBtn" class="btn btn-success" >
																			<i class="ace-icon fa fa-arrow-right bigger-110"></i>
																			下一步
																		</button>
																		
																	</div>
																</div>
															</div>
														</div>
														
													</div>

													<div class="step-pane" id="step-finished" data-step="3">
														<div class="center">
															<h3 class="blue lighter">完成项目基本信息维护...</h3>
														</div>
														<div class="row">
															<div class="col-sm-12">
																<div class="profile-activity clearfix">
																	<div class="center col-md-12">
																		
																		<button id="finishedBtn" class="btn btn-lg btn-success" >
																			<i class="ace-icon fa fa-check bigger-110"></i>
																			完成
																		</button>
																		
																	</div>
																</div>
															</div>
														</div>
													</div>

													<div class="step-pane" data-step="4">
														<div class="center">
															<h3 class="green">Congrats!</h3>
															Your product is ready to ship! Click finish to continue!
														</div>
													</div>
												</div>
											</div>

											<div class="col-sm-12">
												<div id="dialog-message" class="hide" title="操作结果">
													<h5 class="widget-main">保存成功. </h5>
												</div>
											</div>
											
											<div class="col-sm-12">
											<!-- 模态框（Modal） -->
												<div class="modal fade bs-example-modal-lg" id="projectDoRelatedModal" tabindex="-1" role="dialog" data-backdrop="true" data-keyboard="false" aria-labelledby="pkh_detail_title_id" aria-hidden="true">
													<div class="modal-dialog modal-lg" >
														
														<div class="modal-content" style="height: 600px;overflow: auto;">
															<div class="modal-header hide">
																<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
																</button>
															</div>
															<div class="modal-body center " style="overflow: auto;">
																<div style="clear:both"></div>
																<div style="height:400px;">
																    <div class="fp-loading">
																     <i class="fa fa-spinner fa-pulse fa-3x"></i>
																     <p>数据加载中，请耐心等待</p>
																    </div>
																</div>
															</div>
															<div class="modal-footer hide">
																
															</div>
														</div><!-- /.modal-content -->
													</div><!-- /.modal -->
												</div>
											</div>
											
										</div><!-- /.widget-main -->
									</div><!-- /.widget-body -->
								</div>
				
					</div>
				</div>
				
				
				
				<div class="hr hr4 hr-dotted"></div>
				
				
				<!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div>
</div>
#parse('base/footer.html')



		
<script type="text/javascript" charset="utf-8" src="$!webPath/assets/js/bootstrap-datepicker.min.js"></script>

		<!-- 已选贫困户列表 -->
		<script type="text/javascript">

			var widget_header = $(".widget-header");
			console.log("widget_header.width()-24:"+widget_header.width()-24);
			//resize to fit page size
			$(window).on('resize.jqGrid', function () {
				$("#checked-pkh-list").jqGrid( 'setGridWidth', widget_header.width()-24 );
		    });
			
			function reloadDataCheckedGrid(){
				$("#checked-pkh-list").jqGrid('setGridParam',{  
					datatype:'json',  
					mtype : 'POST',
					postData:{'personName':$("#checkedform-field-1").val(),
						'townId':$("#checkedform-field-2").val(),
						'projectId':$("#form-field-projectId").val()}, //发送数据  
					page:1  
				}).trigger("reloadGrid"); //重新载入  
			}
			
			$('#checked-pkh-list-btn').on('click', function() {
				reloadDataCheckedGrid();
			});
			
			$('#checked-bound-btn').on('click', function() {
				
				var ids = $("#checked-pkh-list").jqGrid('getGridParam','selarrrow');
				
				if(ids.length==0){
					$.msgErrorAlert("请选择待解绑的贫困户.");
					return;
				}
				$.ajax({
					type: "POST",
					datatype:'json', 
					url: "$!webPath/basicData/updateRelated?action=delete",
					data: {
						ids: ids.join(','),
						projectId: $("#form-field-projectId").val()
					},
					success: function (result) {
						//reloadDataUncheckedGrid();
						reloadDataCheckedGrid();
					},
					error: function (data) {
						$.msgErrorAlert("发生异常,"+data.msg);
					}
				});
			});

			function detailClick_pkh(rowid,villageId,familyId){
				
				$('#pkhDetailModal').children().remove(); 
				//console.log("显示加载信息...");
				$('#pkhDetailModal').append('<div class="modal-dialog modal-lg " ><div class="modal-content" style="height: 600px;overflow: auto;"><div class="modal-header hide"></div><div class="modal-body center " ><div style="clear:both"></div><div style="height:400px;"><div class="fp-loading"><i class="fa fa-spinner fa-pulse fa-3x"></i><p>数据加载中，请耐心等待</p></div></div></div><div class="modal-footer hide"></div></div></div>'); 
				//console.log("加载模态详情")
				$('#pkhDetailModal').modal({keyboard:false,backdrop:true,remote:"$!webPath/fpgzvillage/familyDetail?villageId="+villageId+"&familyId="+familyId});
			};
			$("#checked-pkh-list").jqGrid({
						url : '$!webPath/basicData/qryFamilyInfo?isInclude=true',
						datatype : "json",
						height : 520,
						//shrinkToFit:false,  
						//autoScroll: true, 
						width : widget_header.width()-24,
						//autowidth: true,
						colNames : [  'id','镇(乡)','行政村','户编号','贫困户名', '脱贫状态'],
						colModel : [ 
							{name : 'familyId',key:true,hidden:true}, 
							{name : 'townName',index : 'townName',sortable : false},
							{name : 'villageName',index : 'villageName',sortable : false},
							{name : 'familyCode',index : 'familyCode',sortable : false},
							{name : 'personName',index : 'personName',sortable : false},
							{name : 'povertyStateName',index : 'povertyStateName',sortable : false}
						],
						mtype : 'POST',
						postData: {    
							'personName':$("#uncheckedform-field-1").val(),
							'townId':$("#uncheckedform-field-2").val(),
							'projectId':$("#form-field-projectId").val()  
					    },
						jsonReader : {
							root : "resultList",
							page : "page",
							total : "totalPages",
							records : "totalRecords",
							rows : "resultList"
						},
						rowNum:10,
						rowList:[10,20,50,100],
						pager: '#checked-pkh-list-pager',
						sortname : 'xh',
						viewrecords : true,
						sortorder : "desc",
						loadComplete : function() {
							var table = this;
							setTimeout(function(){
								styleCheckbox(table);
								
								updateActionIcons(table);
								updatePagerIcons(table);
								enableTooltips(table);
							}, 0);
							
							$(table).siblings(".norecords").remove(); 
							var rowNum = parseInt($(table).getGridParam("records"), 10);   
						    if (rowNum <= 0) {   
								$(table).parent().append("<div  class=\"norecords\">没有数据...</div>");
								$(table).siblings(".norecords").show(); 								
						    } 
						},

						multiselect : true
				});

				$("#checked-pkh-list").closest(".ui-jqgrid-bdiv").css({ "overflow-x" : "scroll" });
				
		</script>
		
		
		
		<script type="text/javascript">
		//var ue = UE.getEditor('editor');
	    //ue.addListener( 'ready', function( editor ) {
	    //    UE.getEditor('editor').execCommand('insertHtml', '$!aidProjectPO.projectDesc')
	    //} );
	    
	    
	    
		jQuery(function($) {
			$('.date-picker').datepicker({
	            autoclose: true,
	            todayHighlight: true
	        });
			
			
			$("#submitFormBtn").on('click',function () {
				
				
				if($('#form-field-projectCode').val()==""){
					$.msgErrorAlert("项目编号不能为空.");
					return;
				}
				if(!isNaN($('#form-field-projectCode').val())){
					
				} else{
					$.msgErrorAlert("项目编号必须是数字.");
					return;
				}
				if($('#form-field-projectName').val()==""){
					$.msgErrorAlert("项目名称不能为空.");
					return;
				}
				if($('#form-field-beginDate').val()==""){
					$.msgErrorAlert("开始时间不能为空.");
					return;
				}
				if($('#form-field-endDate').val()==""){
					$.msgErrorAlert("结束时间不能为空.");
					return;
				}
				if($('#form-field-totalInvest').val()==""){
					$.msgErrorAlert("总投资不能为空.");
					return;
				}
				if(!isNaN($('#form-field-totalInvest').val())){
					
				} else{
					$.msgErrorAlert("总投资必须是数字.");
					return;
				}
				if($('#form-field-planInvest').val()==""){
					$.msgErrorAlert("计划投资不能为空.");
					return;
				}
				if(!isNaN($('#form-field-planInvest').val())){
					
				} else{
					$.msgErrorAlert("计划投资必须是数字.");
					return;
				}
				
				
				$('#detailForm').ajaxSubmit({    
					url:'$!webPath/basicData/updateProjectDetail',  
					dataType: 'text',
					type : 'POST',
					success: resutlMsg,  
					error: errorMsg  
				});   
				function resutlMsg(resultData){
					//console.log($('#editRowId').val());
					//console.log(resultData);
					//reloadDataUncheckedGrid();
					reloadDataCheckedGrid();
					var resultVO = $.parseJSON(resultData);
					if(0==resultVO.code){
						
						if('add'== $('#actionId').val()){
						    var pId = resultVO.rspData.projectId;
							console.log(pId);
							console.log(jQuery("#form-field-projectId").attr("value"));
							jQuery("#form-field-projectId").attr("value",pId);
							console.log(jQuery("#form-field-projectId").attr("value"));
							$('#step-project-info').removeClass("active");
							$('#step-project-family').addClass("active");
							$('#steps-li-1').addClass("complete");
							$('#steps-li-2').addClass("active");
							
							
						}else{
							$('#step-project-info').removeClass("active");
							$('#step-project-family').addClass("active");
							$('#steps-li-1').addClass("complete");
							$('#steps-li-2').addClass("active");
						}
						
						var dialog = $( "#dialog-message" ).removeClass('hide').dialog({
							modal: true,
							buttons: [ 
								
								{
									text: "确定",
									"class" : "btn btn-primary btn-minier",
									click: function() {
										$( this ).dialog( "close" ); 
									} 
								}
							]
						});
					}
					if(0<resultVO.code){
						$.msgErrorAlert("发生异常！"); 
					}
					
					
				};
				function errorMsg(resultData){   
					console.log(resultData);
					$.msgErrorAlert("发生异常！"+resultData.msg);      
				};
				
				
				
				
				
			});	
				
				
			
			$("#backBtn").on('click',function () {
				$('#projectDetailModal').modal('hide');
				
			});
			
			$("#nextBtn").on('click',function () {
				$('#step-project-info').removeClass("active");
				$('#step-project-family').addClass("active");
				$('#steps-li-1').addClass("complete");
				$('#steps-li-2').addClass("active");
				
			});
			
			$("#relatedNextBtn").on('click',function () {
				$('#step-project-family').removeClass("active");
				$('#step-finished').addClass("active");
				$('#steps-li-2').addClass("complete");
				$('#steps-li-3').addClass("complete");
			});
			
			function  goToProjectMain(){
				parent.frames[0].location.href  =  "$!webPath/basicData/projectIndex";
			};
			
			$("#backBtn").on('click',function () {
				goToProjectMain();
			});
			
			$("#relatedBackBtn").on('click',function () {
				goToProjectMain();
			});
			
			$("#finishedBtn").on('click',function () {
				goToProjectMain();
			});
		});
		</script>
	<script type="text/javascript">
	jQuery(function($) {
		//v2
		$("#projectDoRelatedModal").on("hidden", function() {  
			$(this).removeData("modal");  
			
		});  
		//v3
		$("#projectDoRelatedModal").on("hidden.bs.modal", function() {  
			$(this).removeData("bs.modal");
			/*modal页面加载$()错误,由于移除缓存时加载到<span style="color: rgb(51, 51, 255);"><div class="modal-content"></div></span>未移除的数据，手动移除加载的内容*/
			$(this).find(".modal-content").children().remove(); 
		}); 
		
		
		$("#do-releated-btn").on('click',function () {
			$('#projectDoRelatedModal').children().remove(); 
			//console.log("显示加载信息...");
			$('#projectDoRelatedModal').append('<div class="modal-dialog modal-lg " ><div class="modal-content" style="height: 600px;overflow: auto;"><div class="modal-header hide"></div><div class="modal-body center " ><div style="clear:both"></div><div style="height:400px;"><div class="fp-loading"><i class="fa fa-spinner fa-pulse fa-3x"></i><p>数据加载中，请耐心等待</p></div></div></div><div class="modal-footer hide"></div></div></div>'); 
			//console.log("加载模态详情")
			$('#projectDoRelatedModal').modal({keyboard:false,backdrop:true,remote:"$!webPath/basicData/projectUnRelated"});
		
		});
	});
	</script>

</body>
</html>
